package com.tungse.study.mini_spring;

import com.tungse.study.mini_spring.annotation.MyComponent;

@MyComponent
public class MyBeanPostProcessorImpl implements MyBeanPostProcessor{
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
        System.out.println(beanName + "初始化完成");
        return bean;
    }
}
